<?php
/**
 * 推荐案例文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2008 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	grace
 */
if (is_object($objWebInit)) {
	if(!isset($objgrace)){
		include_once(__WEB_ROOT."/grace/class/grace.class.php");
		include_once(__WEB_ROOT."/grace/config/var.inc.php");
		$objgrace = new grace();
		$objgrace->setDBG($arrGPdoDB);
		$objgrace->arrGPic = $arrGPic;
		if(is_object($objWebInit->db)) $objgrace->db = $objWebInit->db;
		else $objgrace->db();
	}
}

$arrTopgrace = array();
$arrTopgrace = $objgrace->getInfoList("where pass=1","  ORDER BY recommendflag DESC,submit_date DESC,clicktimes  DESC", 0, 10,true);
unset($arrTopgrace['COUNT_ROWS']);

$arrMOutput["smarty_assign"]['graceImg'] = $objgrace->arrGPic['FileCallPath'];
$arrMOutput["smarty_assign"]['arrTopgrace'] = $arrTopgrace;
?>